Topic 1 Question #4
Your team wants to centrally manage GCP IAM permissions from their on-premises Active Directory Service. Your team wants to manage permissions by AD group membership.What should your team do to meet these requirements?
- A.
Set up Cloud Directory Sync to sync groups, and set IAM permissions on the groups.
- B.
Set up SAML 2.0 Single Sign-On (SSO), and assign IAM permissions to the groups.
- C.
Use the Cloud Identity and Access Management API to create groups and IAM permissions from Active Directory.
- D.
Use the Admin SDK to create groups and assign IAM permissions from Active Directory.
Answer: A
The scenario requires centralized management of GCP IAM permissions via on-premises Active Directory group membership, which has two core requirements: 1) ongoing synchronization of AD group objects and their memberships to Google Cloud's identity directory, and 2) the ability to assign IAM permissions to the synced groups so that access is controlled entirely by AD group changes made on-premises. The correct approach leverages Google's native managed directory synchronization tool to avoid custom development, ensure consistency between on-prem and cloud directory objects, and align with Google Cloud IAM best practices for centralized identity management, a core domain topic for the Professional Cloud Security Engineer certification. Option Analysis:
A. Correct. Cloud Directory Sync (CDS) is a Google-provided, fully supported tool designed specifically to synchronize users, groups, and group memberships from on-premises Active Directory or other LDAP directories to Cloud Identity, Google Cloud's native identity directory. Once groups are synced from AD, you can directly assign IAM roles to these synced groups, and any changes to group membership made in on-prem AD automatically sync to Google Cloud, removing the need to manage groups in two separate locations. This fully meets both requirements in the scenario.
B. Incorrect. SAML 2.0 SSO only handles user authentication to Google Cloud resources, it does not synchronize group objects or ongoing membership changes from on-prem AD to Google Cloud. While SAML assertions can include group attributes for just-in-time user provisioning during authentication, this does not support centralized, ongoing group management for IAM permission assignment, as groups are not persisted and synced in the Cloud Identity directory.
C. Incorrect. The Cloud IAM API is used to manage IAM policy bindings for GCP resources, it does not support creation or management of Cloud Identity groups. Building a custom integration to pull groups from AD and create them via separate APIs would require ongoing custom development and maintenance, introduces risk of directory inconsistency, and is not the recommended native solution for this use case.
D. Incorrect. While the Admin SDK can be used to programmatically manage Cloud Identity groups, building a custom sync integration between AD and the Admin SDK is unnecessary when Cloud Directory Sync is the native, managed, fully supported solution for AD to Cloud Identity synchronization. Custom sync implementations introduce operational overhead, higher risk of configuration error, and do not align with Google Cloud recommended best practices for directory synchronization. Key Concepts:
1. Cloud Directory Sync (CDS): CDS is the official Google tool for synchronizing on-premises LDAP directory objects including Active Directory users, groups, and memberships to Cloud Identity, ensuring consistent identity data between on-prem and Google Cloud environments with no manual dual management.
2. IAM Group-Based Access Control: Assigning IAM permissions to groups rather than individual users reduces administrative overhead and simplifies access governance. Using groups synced from a central identity source like on-prem AD enables consistent access policy enforcement across on-prem and cloud infrastructure.
3. Authentication vs Directory Synchronization: SAML 2.0 SSO addresses authentication which is verifying user identity, while directory synchronization addresses authorization-related identity object management including syncing groups and memberships to assign IAM permissions, two separate components of a cloud identity and access management strategy. References:
Synchronize users from Active Directory or LDAP to Cloud Identity, Cloud Directory Sync overview